home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 8 / FM Towns Free Software Collection 8.iso / t_os / bb / src / box.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-01  |  665 b   |  31 lines

  1. /*
  2.     box display
  3.                       1993.6.27 v1.0
  4.                       copyright Y.Ouchi
  5.         in :sx,sy    start point (left top posision)
  6.             ex,ey    end point (right bottom posision)
  7.             col        display color
  8.             fil        box fill or not flag
  9. */
  10.  
  11. #include "egb.h"
  12.  
  13. extern    char    egbwork[1536];
  14.  
  15. void box(int sx, int sy, int ex, int ey, int col, int fil)
  16. {
  17.     char para[10];
  18.  
  19.     EGB_color(egbwork, 0, col);
  20.     EGB_color(egbwork, 2, col);
  21.     if ( fil != 0 ) EGB_paintMode(egbwork, 0x22);
  22.     else EGB_paintMode(egbwork, 0x02);
  23.     WORD(para + 0) = sx;
  24.     WORD(para + 2) = sy;
  25.     WORD(para + 4) = ex;
  26.     WORD(para + 6) = ey;
  27.     EGB_rectangle(egbwork, para);
  28.     return;
  29. }
  30.  
  31.